<table cellpadding="0" cellspacing="0">
  <thead>
    <tr>
      <th width="155">商品</th>
      <th>商品名称</th>
      <th style="min-width:80px;">属性</th>
      <th style="min-width:60px;">数量</th>
      <th style="min-width:60px;">单价</th>
      <th style="min-width:60px;">总计</th>
    </tr>
  </thead>
  <tbody>
    {foreach $list as $k=>$v}
      {$count_detail = count($v.detail)}
      {foreach $v.detail as $key=>$value}
      <tr>
        <td style="width:80px;"><div class="pic"><a href='{AnUrl("goods/`$value.goods_id`/`$value.id`")}' target="_blank"><img src="{_image($value.image, 'middle')}"></a></div></td>
        <td><h4 class="title"><a href='{AnUrl("goods/`$value.goods_id`/`$value.id`")}' target="_blank">{$value.goods_title}</a></h4></td>
        <td><p>{$value.sku_property}</p></td>
        <td><p>{$value.goods_num}</p></td>
        <td><p>{$value.goods_price|number_format:2}</p></td>
        {if $key == 0}
        <td rowspan="{$count_detail}" class="border-left" style="font-size:14px;">{$v.price|number_format:2}</td>
        {/if}
      </tr>
      {/foreach}
    {foreachelse}
    订单不存在。。
    {/foreach}
  </tbody>
</table>